cmake_minimum_required(VERSION 3.5.1)

set(PROTOS examples.proto)

PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS ${PROTOS})

include_directories(${PROTOBUF_INCLUDE_DIRS})

add_library(cyber_examples_proto ${PROTO_SRCS} ${PROTO_HDRS})
target_link_libraries(cyber_examples_proto ${PROTOBUF_LIBRARIES})
add_library(cyber::examples_proto ALIAS cyber_examples_proto)


install(TARGETS cyber_examples_proto
        EXPORT apollo-export
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib
        RUNTIME DESTINATION bin
        INCLUDES DESTINATION .
        )
